<?php


namespace App\Http\Controllers\Frontend;


use App\Events\TransferSuccessEvent;
use App\Services\Business\Models\UserRedpacketRecord;
use App\Zesow\WechatMini;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\Hash;


class IndexController extends FrontendController
{


    public function index(Request $request)
    {



        Cache::store('redis')->flush();
        return __('cache cleared,the server is running fine!!');

    }

    public function transfer(Request $request)
    {




    }

    public function userProtocol()
    {
        $protocol = $this->configService->getMemberProtocol();
        return view('index.user_protocol', compact('protocol'));
    }

    public function userPrivateProtocol()
    {
        $protocol = $this->configService->getMemberPrivateProtocol();
        return view('index.user_private_protocol', compact('protocol'));
    }

    public function aboutus()
    {
        $aboutus = $this->configService->getAboutus();
        return view('index.aboutus', compact('aboutus'));
    }


}
